<template>
  <div>
    <van-cell-group style="margin-top:5px;">
      <van-cell-group>
        <van-field v-model="value" placeholder="配送至" label="送至" @click="addrshow=true"/>
        <van-field v-model="roadmoney" label="运费" disabled/>
      </van-cell-group>
    </van-cell-group>

    <van-popup v-model="addrshow" position="bottom">
      <van-area :area-list="areaList" :columns-num="3" @cancel="close" @confirm="addAddr"/>
    </van-popup>

    <van-cell-group style="margin-top:5px">
      <van-cell title="领取优惠券" is-link/>
      <van-cell title="服务" is-link @click="show=true"/>
      <van-cell title="选择属性" is-link @click="info=true"/>
    </van-cell-group>

    <van-cell-group style="margin-top:5px">
      <van-cell title="商品评价" is-link/>
    </van-cell-group>

    <van-popup v-model="show" position="bottom" :overlay="true">
      <div class="over">
        <div class="title">基础服务</div>
        <div class="content">
          <div class="con1">
            <van-icon name="passed"/>
            <span>订单险</span>
            <div class="con_text">保险公司全程担保赔付该商品每笔交易的售后</div>
          </div>
          <div class="con1">
            <van-icon name="passed"/>
            <span>订单险</span>
            <div class="con_text">保险公司全程担保赔付该商品每笔交易的售后</div>
          </div>
          <div class="con1">
            <van-icon name="passed"/>
            <span>订单险</span>
            <div class="con_text">保险公司全程担保赔付该商品每笔交易的售后</div>
          </div>
        </div>
        <div class="but" @click="show=false">完成</div>
      </div>
    </van-popup>

    <van-popup v-model="info" position="bottom">
      <div class="info_pop">
        商品评价相关
        
      </div>
      
    </van-popup>
  </div>
</template>

<script>
import Addressinfo from "../../../common/area";
export default {
  data() {
    return {
      areaList: Addressinfo,
      addrshow: false,
      show: false,
      value: "",
      roadmoney: "0元",
      info:false
    };
  },
  methods: {
    close() {
      this.addrshow = false;
    },
    addAddr(value) {
      this.addrshow = false;
      this.value = value[0].name + " " + value[1].name + " " + value[2].name;
    }
  }
};
</script>

<style>
.over .title {
  font-size: 20px;
  text-align: center;
  padding: 20px 0px;
}
.over {
  position: relative;
  height: 400px;
  overflow: scroll;
}
.over .content {
  width: 80%;
  margin: 0 auto;
  padding-bottom: 20px;
}
.over .content .con1 {
  padding-bottom: 10px;
}
.over .content span {
  padding-left: 20px;
}
.over .content .van-icon {
  color: #e73f09;
  float: left;
  padding-top: 2px;
}
.over .but {
  background: #e73f09;
  text-align: center;
  line-height: 50px;
  color: white;
  font-size: 20px;
  position: absolute;
  bottom: 0;
  height: 50px;
  width: 100%;
}
</style>
